﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ZFine.Domain.Entity
{
    public class MemberEntity : IEntity<AreaEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
    {
        public string F_Id { get; set; }
        public string F_CreatorUserId { get; set; }
        public DateTime? F_CreatorTime { get; set; }
        /// <summary>
        /// 逻辑删除标记
        /// </summary>
        public bool? F_DeleteMark { get; set; }
        /// <summary>
        /// 删除实体的用户
        /// </summary>
        public string F_DeleteUserId { get; set; }
        /// <summary>
        /// 删除实体时间
        /// </summary>
        public DateTime? F_DeleteTime { get; set; }
        public string F_LastModifyUserId { get; set; }
        public DateTime? F_LastModifyTime { get; set; }

        ///// <summary>
        ///// 会员用户名
        ///// </summary>
        //[StringLength(70)]
        //public  string MemberID { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(50)]
        public  string PassWord { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        [StringLength(30)]
        public  string RealName { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        [StringLength(30)]
        public  string Nickname { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [StringLength(500)]
        public  string FileName { get; set; }

        /// <summary>
        /// 微信openid
        /// </summary>
        [StringLength(100)]
        public string WeChatOpenid { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [StringLength(10)]
        public  string Sex { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public  DateTime? Birthday { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [StringLength(20)]
        public  string Tel { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        [StringLength(20)]
        public  string Province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        [StringLength(20)]
        public  string City { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        [StringLength(20)]
        public  string Area { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(50)]
        public  string Address { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(50)]
        public  string Email { get; set; }
        /// <summary>
        /// 状态 0 为启用 1 为禁用
        /// </summary>
        public  int? Status { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public  DateTime? AddTime { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        public  decimal? MoneyPrice { get; set; }

        /// <summary>
        /// 坐标点
        /// </summary>
        public  decimal? XPoint { get; set; }
        /// <summary>
        /// 坐标点
        /// </summary>
        public  decimal? YPoint { get; set; }


        /// <summary>
        /// 是否通过客户审核
        /// </summary>
        public bool? IsPassMerchant { get; set; }

        /// <summary>
        /// 申请客户时间
        /// </summary>
        public DateTime? ApplicationTime { get; set; }

        /// <summary>
        /// 公众号登录的状体（默认/1表示为会员登录，2表示为客户账户登录）
        /// </summary>
        public int? logintype { get; set; }

        ///// <summary>
        ///// 管理商户id
        ///// </summary>
        //public virtual string MerchantPId { get; set; }
        /// <summary>
        /// 管理商户
        /// </summary>
        public virtual UserEntity MerchantP { get; set; }

    }
}
